/**
 * Created by lt on 2017/5/9.
 */
function addRole() {
    var data={roleName:$("#roleName").val()}
    $.ajax({//获取用户id
        type: 'post',
        url: '/admin/role/addRole.html',
        data: data,
        success: function (data) {
            var data=$.parseJSON(data);
            if (data.code != 1) {
                alert(data.msg);
                return;
            }
            alert("角色添加成功！")
            location.reload();
        }

    });

}